const app = require('express');
const router = app.Router();

var news = require("../controllers/news.controller");

router.get('/',function(req,res,next){
    res.redirect(301,"/management/company");
});

router.get(/^\/[(news?Detail) | (ticket?Detail) | (flight?Detail) | (plane?Detail) | (company?Detail)]/,function(req,res,next){
    res.render('index', { title: '航程' });
});

router.get('/book',function(req,res,next){
    res.render('index', { title: '航程' });
});

module.exports = router;